﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbProject
{
    [Table("Worker")]
    public class WorkerModel
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [DisplayName("מזהה עובד")]
        public int WorkerId { set; get; }

        [MaxLength(150)]
        [DisplayName("שם משתמש")]
        public string UserName { get; set; }

        [MaxLength(150)]
        [DisplayName("שם פרטי")]
        public string FirstName { get; set; }

        [MaxLength(150)]
        [DisplayName("שם משפחה")]
        public string LastName { set; get; }

        [MaxLength(150)]
        [DisplayName("טלפון")]
        public string PhoneNumber { set; get; }

        [MaxLength(150)]
        [DisplayName("ת.ז")]
        public string GovermentIdNumber { set; get; }


        public int JobId { set; get; }

        //public byte[] WorkGroup { set; get; }


        [DisplayName("משתמש פעיל")]
        public bool Active { set; get; }
    }
}
